<?php
require_once __DIR__ . '/vendor/autoload.php';
use MerageAudio\Audio\audio;
//进行测试
$audios = [ //音频文件
    __DIR__.'/mp3/1604980743-232.mp3',
    __DIR__.'/mp3/1604980746-868.mp3',
    __DIR__.'/mp3/1604980750-355.mp3',
];

$merge_new_file = __DIR__.'/mp3/files/'; //合并后的目录
$file = audio::mergeAudio($audios,$merge_new_file);//进行合并
//var_dump(strstr($file,"/files"));die;
if($file){
    //加入音频
    $bj_mp3 =  __DIR__.'/mp3/bj.mp3';
    $res = audio::addBgAduio($file,$bj_mp3,$merge_new_file);
}

var_dump($file);
var_dump($res);


